<template>
  <div>
    <input type="text" v-model="title" @keydown.enter="search" />
  </div>
</template>

<script>
import axios from "axios";
import { getBanner } from "../utils/api.js";

export default {
  data() {
    return {
      title: "",
    };
  },
  methods: {
    search() {
      axios.get("/api/suggest?word=" + this.title).then((res) => {
        console.log(res);
      });
    },
  },
  created() {
    getBanner().then((res) => {
      console.log(res);
    });
  },
  mounted() {},
  components: {},
  computed: {},
  watch: {},
};
</script>

<style lang="scss" scoped></style>
